<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Aquamat: Plik źródłowy aquamat.h (r58/r57)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Wygenerowano przez Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Strona&nbsp;główna</span></a></li>
      <li><a href="pages.html"><span>Dodatkowe&nbsp;strony</span></a></li>
      <li><a href="annotated.html"><span>Struktury&nbsp;Danych</span></a></li>
      <li class="current"><a href="files.html"><span>Pliki</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>Lista&nbsp;plików</span></a></li>
      <li><a href="globals.html"><span>Globalne</span></a></li>
    </ul>
  </div>
<h1>aquamat.h (r58/r57)</h1><a href="aquamat_8h.html">Idź do dokumentacji tego pliku.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    Aquamat - Sterownik akwariowy Open Source</span>
<a name="l00003"></a>00003 <span class="comment">    Copyright (C) 2009 Wojciech Todryk (wojciech@todryk.pl)</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">    This program is free software; you can redistribute it and/or modify</span>
<a name="l00006"></a>00006 <span class="comment">    it under the terms of the GNU General Public License as published by</span>
<a name="l00007"></a>00007 <span class="comment">    the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00008"></a>00008 <span class="comment">    (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">    This program is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00013"></a>00013 <span class="comment">    GNU General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">    You should have received a copy of the GNU General Public License</span>
<a name="l00016"></a>00016 <span class="comment">    along with this program; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment">    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</span>
<a name="l00018"></a>00018 <span class="comment">    </span>
<a name="l00019"></a>00019 <span class="comment">    $Id: aquamat.h 48 2009-03-27 21:37:50Z musashi@todryk.pl $</span>
<a name="l00020"></a>00020 <span class="comment">*/</span>
<a name="l00021"></a>00021 
<a name="l00026"></a><a class="code" href="aquamat_8h.html#a43bafb28b29491ec7f871319b5a3b2f8">00026</a> <span class="preprocessor">#define F_CPU 8000000UL</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;avr/io.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;util/delay.h&gt;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &lt;avr/pgmspace.h&gt;</span>
<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="commonDefs_8h.html" title="Plik nagłówkowy - wspólne definicje dla interfejsu i sterownika.">commonDefs.h</a>&quot;</span>
<a name="l00032"></a>00032 
<a name="l00033"></a><a class="code" href="aquamat_8h.html#a1540f4879d7cf61a5045f830883d843b">00033</a> <span class="keyword">typedef</span> uint16_t <a class="code" href="aquamat_8h.html#a1540f4879d7cf61a5045f830883d843b">TEMP</a>;
<a name="l00034"></a>00034 
<a name="l00035"></a><a class="code" href="aquamat_8h.html#af3ddc5a73ff88a58733f0879ce37196d">00035</a> <span class="preprocessor">#define GLUE(a, b)     a##b</span>
<a name="l00036"></a><a class="code" href="aquamat_8h.html#a533379ddbe9e9015ac109f39c84bce48">00036</a> <span class="preprocessor"></span><span class="preprocessor">#define PORT(x)        GLUE(PORT, x)</span>
<a name="l00037"></a><a class="code" href="aquamat_8h.html#ad7581da21e9fd6fd6f6920dd68d1c782">00037</a> <span class="preprocessor"></span><span class="preprocessor">#define PIN(x)         GLUE(PIN, x)</span>
<a name="l00038"></a><a class="code" href="aquamat_8h.html#acbe348573e1b5adccdc7bcf157dc6425">00038</a> <span class="preprocessor"></span><span class="preprocessor">#define DDR(x)         GLUE(DDR, x)</span>
<a name="l00039"></a><a class="code" href="aquamat_8h.html#a6fbeaf8d2bf619d044ac3ad7df64a5d4">00039</a> <span class="preprocessor"></span><span class="preprocessor">#define pin(x)         GLUE(pin, x)</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span>
<a name="l00043"></a><a class="code" href="aquamat_8h.html#aa8cecfc5c5c054d2875c03e77b7be15d">00043</a> <span class="preprocessor">#define TRUE 1</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00047"></a><a class="code" href="aquamat_8h.html#aa93f0eb578d23995850d61f7d61c55c1">00047</a> <span class="preprocessor">#define FALSE 0</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span>
<a name="l00051"></a><a class="code" href="aquamat_8h.html#ad76d1750a6cdeebd506bfcd6752554d2">00051</a> <span class="preprocessor">#define ON 1</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span>
<a name="l00055"></a><a class="code" href="aquamat_8h.html#a29e413f6725b2ba32d165ffaa35b01e5">00055</a> <span class="preprocessor">#define OFF 0</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span>
<a name="l00059"></a><a class="code" href="aquamat_8h.html#adcbcfd714fa8da9c742a5b5f070494e3">00059</a> <span class="preprocessor">#define UINT16_T_DISABLED 0xFFFF</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span>
<a name="l00062"></a><a class="code" href="aquamat_8h.html#a433b8d6a51b221fcab39c2eecc9c2275">00062</a> <span class="preprocessor">#define UINT8_T_DISABLED 0xFF</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span>
<a name="l00064"></a><a class="code" href="aquamat_8h.html#a3b6a35b8be8405a9db72cc5dea97954b">00064</a> <span class="preprocessor">#define PROGRAM_NAME &quot;Aquamat&quot;</span>
<a name="l00065"></a><a class="code" href="aquamat_8h.html#a2b3f27391e999e5273d5a3fd7cb266f6">00065</a> <span class="preprocessor"></span><span class="preprocessor">#define PROGRAM_VERSION_MAIN 1</span>
<a name="l00066"></a><a class="code" href="aquamat_8h.html#a9730e0b602fdbcb160581546ffabf71c">00066</a> <span class="preprocessor"></span><span class="preprocessor">#define PROGRAM_VERSION_MAJOR 0</span>
<a name="l00067"></a><a class="code" href="aquamat_8h.html#a5b77305c35c59a2951263db646f3bb52">00067</a> <span class="preprocessor"></span><span class="preprocessor">#define PROGRAM_VERSION_MINOR 5</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span>
<a name="l00070"></a><a class="code" href="aquamat_8h.html#ab54467af48bec1021286080a4008e411">00070</a> <span class="preprocessor">#define TAU1 10000</span>
<a name="l00071"></a><a class="code" href="aquamat_8h.html#aec3306780fb4af22ba80e4da7929e220">00071</a> <span class="preprocessor"></span><span class="preprocessor">#define TICKS 50</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span>
<a name="l00074"></a><a class="code" href="aquamat_8h.html#ae6038da526858a392e48b883a1a099a6">00074</a> <span class="preprocessor">#define HD44780_BL_PORT B</span>
<a name="l00075"></a><a class="code" href="aquamat_8h.html#ad23014587852ef26e66b5598d9451b0d">00075</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_BL_SWITCH PORT3</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00078"></a><a class="code" href="aquamat_8h.html#a39a460e9e32291ce37fff711a8ae6b57">00078</a> <span class="preprocessor">#define HD44780_DATA_PORT A</span>
<a name="l00079"></a><a class="code" href="aquamat_8h.html#ae69afe7c83a414c54b7f9e11f10c6ba1">00079</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_CONTROL_PORT B</span>
<a name="l00080"></a><a class="code" href="aquamat_8h.html#aac7b2021d59d04f3b3e12951ee06ba1f">00080</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_RS PORT0</span>
<a name="l00081"></a><a class="code" href="aquamat_8h.html#af4fd18e291920029a9fb95a9e1bda761">00081</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_RW PORT1</span>
<a name="l00082"></a><a class="code" href="aquamat_8h.html#a3fe1bbfe04ed23b9db1ea01c26183ff0">00082</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_E  PORT2</span>
<a name="l00083"></a><a class="code" href="aquamat_8h.html#a19786166a4b7a4a6ab015585de327ebb">00083</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_D4 PORT4</span>
<a name="l00084"></a><a class="code" href="aquamat_8h.html#ab2937ed3d3629f3184c0b6b7d1a753d0">00084</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_D5 PORT5</span>
<a name="l00085"></a><a class="code" href="aquamat_8h.html#a2024640f9ac12a4b3eb607dc41f9c884">00085</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_D6 PORT6</span>
<a name="l00086"></a><a class="code" href="aquamat_8h.html#a9bca909cba06a2b642546fcd00e82d12">00086</a> <span class="preprocessor"></span><span class="preprocessor">#define HD44780_D7 PORT7</span>
<a name="l00087"></a>00087 <span class="preprocessor"></span>
<a name="l00090"></a><a class="code" href="aquamat_8h.html#a9b3a50cb6c76562eecb211870dce7ca8">00090</a> <span class="preprocessor">#define DAYTIME_FROM_DEFAULT_HOURS 6</span>
<a name="l00091"></a><a class="code" href="aquamat_8h.html#a7e11da0e7ff29b201e113bd55ffa0a50">00091</a> <span class="preprocessor"></span><span class="preprocessor">#define DAYTIME_FROM_DEFAULT_MINUTES 0</span>
<a name="l00092"></a><a class="code" href="aquamat_8h.html#a4017e4fa71a96758da6624bdbc95bdeb">00092</a> <span class="preprocessor"></span><span class="preprocessor">#define DAYTIME_TO_DEFAULT_HOURS 18</span>
<a name="l00093"></a><a class="code" href="aquamat_8h.html#ab346bbf99a60e81dc1c49cc960793978">00093</a> <span class="preprocessor"></span><span class="preprocessor">#define DAYTIME_TO_DEFAULT_MINUTES 0</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span>
<a name="l00096"></a><a class="code" href="aquamat_8h.html#ac12405deb4b9705628557fc21e7d6456">00096</a> <span class="preprocessor">#define LCD_CHAR_DEGREE 0</span>
<a name="l00097"></a><a class="code" href="aquamat_8h.html#aed8dac870016d7808fa4cda1b749f69d">00097</a> <span class="preprocessor"></span><span class="preprocessor">#define LCD_CHAR_FAILURE 1</span>
<a name="l00098"></a><a class="code" href="aquamat_8h.html#a1ec4c3b2667728056a565ee90de30e0c">00098</a> <span class="preprocessor"></span><span class="preprocessor">#define LCD_CHAR_COOLING 2</span>
<a name="l00099"></a><a class="code" href="aquamat_8h.html#aa071ed1722b8bbeb55ffb8ebe11519bb">00099</a> <span class="preprocessor"></span><span class="preprocessor">#define LCD_CHAR_HEATING 3</span>
<a name="l00100"></a><a class="code" href="aquamat_8h.html#aa884b973d1def57548c0e5b7dd1d71dc">00100</a> <span class="preprocessor"></span><span class="preprocessor">#define LCD_CHAR_OFF 4</span>
<a name="l00101"></a><a class="code" href="aquamat_8h.html#a7bbceba1c9a9959aebbe920a83d7df41">00101</a> <span class="preprocessor"></span><span class="preprocessor">#define LCD_CHAR_OFF_BLOCKED 5</span>
<a name="l00102"></a><a class="code" href="aquamat_8h.html#a34c399d6ae82cc73d47cabf64c58f4a5">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define LCD_CHAR_ON 6</span>
<a name="l00103"></a><a class="code" href="aquamat_8h.html#a44f9543de223b854f7f3bb0a7883f343">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define LCD_CHAR_ON_BLOCKED 7</span>
<a name="l00104"></a>00104 <span class="preprocessor"></span>
<a name="l00105"></a><a class="code" href="aquamat_8h.html#a2dc45a6c3bcd3fae307b4c05fdfa52bd">00105</a> <span class="preprocessor">#define LCD_BL_SHUTOFF_TIME 10</span>
<a name="l00106"></a>00106 <span class="preprocessor"></span>
<a name="l00108"></a><a class="code" href="aquamat_8h.html#abf0d28f731e836936a87086ea8b798da">00108</a> <span class="preprocessor">#define BUZZER_PORT C</span>
<a name="l00109"></a><a class="code" href="aquamat_8h.html#ac5e09cee8af5664a058204034c451b7d">00109</a> <span class="preprocessor"></span><span class="preprocessor">#define BUZZER_SWITCH PORT6</span>
<a name="l00110"></a><a class="code" href="aquamat_8h.html#a9da1a00e91c8f0492a081936255b7d45">00110</a> <span class="preprocessor"></span><span class="preprocessor">#define BUZZER_PORTOUT PORT(BUZZER_PORT)</span>
<a name="l00111"></a><a class="code" href="aquamat_8h.html#a72dd69773eeadd5bd64c4342bb9501bf">00111</a> <span class="preprocessor"></span><span class="preprocessor">#define BUZZER_DDR DDR(BUZZER_PORT)</span>
<a name="l00112"></a><a class="code" href="aquamat_8h.html#aef1b2eda8ed2f16fe9e90424ec1a9dde">00112</a> <span class="preprocessor"></span><span class="preprocessor">#define buzzer_on() BUZZER_PORTOUT |= _BV(BUZZER_SWITCH)</span>
<a name="l00113"></a><a class="code" href="aquamat_8h.html#aabdb94dd135c53d61687ea4d1233ab18">00113</a> <span class="preprocessor"></span><span class="preprocessor">#define buzzer_off() BUZZER_PORTOUT &amp;= ~_BV(BUZZER_SWITCH)</span>
<a name="l00114"></a><a class="code" href="aquamat_8h.html#aa6f4a27553fa783054d02b318096f420">00114</a> <span class="preprocessor"></span><span class="preprocessor">#define buzzer_toggle() BUZZER_PORTOUT ^= _BV(BUZZER_SWITCH)</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span>
<a name="l00117"></a><a class="code" href="aquamat_8h.html#a734bbab06e1a9fd2e5522db0221ff6e3">00117</a> <span class="preprocessor">#define BAUDRATE 19200</span>
<a name="l00118"></a><a class="code" href="aquamat_8h.html#a0b029ff580b042a27aaac4bd2ec925e2">00118</a> <span class="preprocessor"></span><span class="preprocessor">#define UBRR_VALUE ((F_CPU/(BAUDRATE*16UL))-1)</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span>
<a name="l00124"></a><a class="code" href="aquamat_8h.html#a9ec165506cdebc56a8f897df657bccf8">00124</a> <span class="preprocessor">#define SSF(x) system_flags |= _BV(x)</span>
<a name="l00125"></a><a class="code" href="aquamat_8h.html#aeecf108b4df43ece7aa5a17f63706462">00125</a> <span class="preprocessor"></span><span class="preprocessor">#define CSF(x) system_flags &amp;= ~_BV(x)</span>
<a name="l00126"></a><a class="code" href="aquamat_8h.html#ad16d0c17e920a80744d54160d99ce4da">00126</a> <span class="preprocessor"></span><span class="preprocessor">#define SF(x) system_flags &amp; _BV(x)</span>
<a name="l00127"></a>00127 <span class="preprocessor"></span>
<a name="l00128"></a><a class="code" href="aquamat_8h.html#acdfe3c0fba19ef6697343eb90e3b8649">00128</a> <span class="preprocessor">#define FLAG_HOUR_PAST 1</span>
<a name="l00129"></a><a class="code" href="aquamat_8h.html#a4ec2b13a6bad0f56cb07d593dc82487e">00129</a> <span class="preprocessor"></span><span class="preprocessor">#define FLAG_FORCE_LCD_SEMI_REFRESH 2</span>
<a name="l00130"></a><a class="code" href="aquamat_8h.html#af7adc6815ae893628aaca3c31fe093df">00130</a> <span class="preprocessor"></span><span class="preprocessor">#define FLAG_DAY_PAST 3</span>
<a name="l00131"></a><a class="code" href="aquamat_8h.html#a122a5d43e1cd04734fe715dfadc43435">00131</a> <span class="preprocessor"></span><span class="preprocessor">#define FLAG_FORCE_LCD_REFRESH 4</span>
<a name="l00132"></a><a class="code" href="aquamat_8h.html#a2888e674bc74d6c9d990a03db936c03b">00132</a> <span class="preprocessor"></span><span class="preprocessor">#define FLAG_HALF_SECOND_PAST 5</span>
<a name="l00133"></a><a class="code" href="aquamat_8h.html#a3ddda2e45185c26a1eac8016b4d5bedb">00133</a> <span class="preprocessor"></span><span class="preprocessor">#define FLAG_SECOND_PAST 6</span>
<a name="l00134"></a><a class="code" href="aquamat_8h.html#a4e9d3558206d113a4adbc44280ac0a0f">00134</a> <span class="preprocessor"></span><span class="preprocessor">#define FLAG_MINUTE_PAST 7</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span>
<a name="l00136"></a><a class="code" href="aquamat_8h.html#a12ec20644b3f89d1f3f32579cd142764">00136</a> <span class="preprocessor">#define LCD_REFRESH_MASK (_BV(FLAG_FORCE_LCD_SEMI_REFRESH)|_BV(FLAG_FORCE_LCD_REFRESH))</span>
<a name="l00137"></a>00137 <span class="preprocessor"></span>
<a name="l00139"></a><a class="code" href="aquamat_8h.html#a204403fbb1b8d8e939f083b8e015f055">00139</a> <span class="preprocessor">#define ONEWIRE_PORT C</span>
<a name="l00140"></a><a class="code" href="aquamat_8h.html#ad5e649aa028bd3be75964322c1cc6ed0">00140</a> <span class="preprocessor"></span><span class="preprocessor">#define ONEWIRE_PIN PORT7</span>
<a name="l00141"></a>00141 <span class="preprocessor"></span>
<a name="l00145"></a><a class="code" href="aquamat_8h.html#a66c0b97fb738bc74a9484be2f2a3bd1c">00145</a> <span class="keyword">typedef</span> void (*<a class="code" href="aquamat_8h.html#a66c0b97fb738bc74a9484be2f2a3bd1c">FuncPtr</a>)(void);
<a name="l00146"></a>00146 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="aquamat_8h.html#adfff62ff367ef10762911a43d970e010">seconds</a>;
<a name="l00147"></a>00147 
<a name="l00148"></a>00148 <span class="keyword">extern</span> <span class="keyword">struct </span><a class="code" href="structMIT.html" title="Struktura przechowująca czas (ang. moment in time).">MIT</a> <a class="code" href="aquamat_8h.html#a6e201c43b51d74d4cacc7d26cc5bcf20">daytime_from</a>;
<a name="l00149"></a>00149 <span class="keyword">extern</span> <span class="keyword">struct </span><a class="code" href="structMIT.html" title="Struktura przechowująca czas (ang. moment in time).">MIT</a> <a class="code" href="aquamat_8h.html#aee8a3da2a9b017655b8491f5bc9441f3">daytime_to</a>;
<a name="l00150"></a>00150 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="aquamat_8h.html#a9add4fbb7f0aa961e1c29b847fa72aaf" title="Zmienna przechowująca flagi związane ze zdarzeniami systemowymi.">system_flags</a>;
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="aquamat_8h.html#aeffec595652718803ffabc10f313ee31">pinB</a>;
<a name="l00153"></a>00153 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="aquamat_8h.html#a91ba8fa61be6483bfb84f627db01b20c">pinC</a>;
<a name="l00154"></a>00154 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="aquamat_8h.html#afde43dc68caf398b4909ef8e542e7afe">pinD</a>;
<a name="l00155"></a>00155 
<a name="l00156"></a>00156 
<a name="l00157"></a>00157 <span class="keyword">extern</span> <span class="keyword">volatile</span> uint8_t <a class="code" href="aquamat_8h.html#abe4aedb95700463c5f78aa63ed26a046">temp_counter</a>;
<a name="l00158"></a>00158 
<a name="l00159"></a>00159 void(*<a class="code" href="aquamat_8h.html#acfab04a037611d24246abc870536f42a">restart</a>)(void);
<a name="l00160"></a>00160 
<a name="l00163"></a><a class="code" href="aquamat_8h.html#a7d998f7379cb833a0367db05feb51670">00163</a> <span class="preprocessor">#define MIT_DEFAULT_HOURS 12</span>
<a name="l00164"></a>00164 <span class="preprocessor"></span>
<a name="l00167"></a><a class="code" href="aquamat_8h.html#aedacd6408d761cb0a3caf93614d346dc">00167</a> <span class="preprocessor">#define MIT_DEFAULT_MINUTES 1</span>
<a name="l00168"></a>00168 <span class="preprocessor"></span>
<a name="l00171"></a><a class="code" href="aquamat_8h.html#a7c0ebbe4bce8300466d244687552423f">00171</a> <span class="preprocessor">#define MIT_MAX_HOURS 23 </span>
<a name="l00172"></a>00172 <span class="preprocessor"></span>
<a name="l00175"></a><a class="code" href="aquamat_8h.html#a9e3e3cb843d1cc36912c610ab9ff4523">00175</a> <span class="preprocessor">#define MIT_MAX_MINUTES 59</span>
<a name="l00176"></a>00176 <span class="preprocessor"></span>
<a name="l00177"></a>00177 
<a name="l00181"></a><a class="code" href="structMIT.html">00181</a> <span class="keyword">struct </span><a class="code" href="structMIT.html" title="Struktura przechowująca czas (ang. moment in time).">MIT</a> {
<a name="l00182"></a><a class="code" href="structMIT.html#a71618a82699975cd2588a796ceb7f511">00182</a>     uint8_t <a class="code" href="structMIT.html#a71618a82699975cd2588a796ceb7f511">hours</a>;      
<a name="l00183"></a><a class="code" href="structMIT.html#ad1dbf6464173352229b3591e714cb3d6">00183</a>     uint8_t <a class="code" href="structMIT.html#ad1dbf6464173352229b3591e714cb3d6">minutes</a>;    
<a name="l00184"></a>00184 };
<a name="l00185"></a>00185 
<a name="l00186"></a>00186 uint8_t <a class="code" href="aquamat_8c.html#ada2ee06dc8187891cf8d9f10582056b1">is_not_valid_MIT</a>(<span class="keyword">struct</span> <a class="code" href="structMIT.html" title="Struktura przechowująca czas (ang. moment in time).">MIT</a>*);
<a name="l00187"></a>00187 <span class="keywordtype">void</span> <a class="code" href="aquamat_8c.html#a690a124382a5bf706d4ee409eca0f80f">set_MIT</a>(<span class="keyword">struct</span> <a class="code" href="structMIT.html" title="Struktura przechowująca czas (ang. moment in time).">MIT</a> *,uint8_t,uint8_t,uint8_t,uint8_t);
</pre></div></div>
<hr size="1">
<div style="text-align: center;">
<small>Projekt udostępniony jest na zasadach Open Source. Zapoznaj się z warunkami licencji w pliku COPYING znajdujacym się w katalogu głównym.	</small>
</div>

<hr size="1">
<div style="text-align: center;">
Aquamat - sterownik akwarystyczny Open Source
<br/>
Copyright (C) 2009  <a href="http://todryk.pl">Wojciech Todryk</a> (wojciech(at)todryk(dot)pl)
</div>

<div style="text-align: right;">
<small>Dokumentację wygenerowano za pomocą programu&nbsp;</small>
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a>
<small> wersja 1.6.1 (Fri Apr 23 22:48:16 2010)&nbsp;</small>
</div>
